package cn.edu.scau.cmi.wangzm.client;

import cn.edu.scau.cmi.wangzm.factory.BeefMeatFactory;
import cn.edu.scau.cmi.wangzm.factory.ChickenMeatFactory;
import cn.edu.scau.cmi.wangzm.factory.PorkMeatFactory;
import cn.edu.scau.cmi.wangzm.simplefactory.Meat;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class FactoryClient extends Application{
    private Stage primaryStage;

    public FactoryClient() {
		// TODO Auto-generated constructor stub
	}
	@Override
	public void start(Stage primaryStage) throws Exception {
		// TODO Auto-generated method stub
		this.primaryStage = primaryStage;
        this.primaryStage.setTitle("实验二：工厂模式");
        Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/wangzm/factory/Factory.fxml"));
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
	}
    public static void main(String[] args) {
        launch(args);
    }

}
